Version

CreateMonthExpression<TDataObjectType> Method

Creates an System.Linq.Expressions.Expression that will evaluate an object's DateTime field for a particular month value.
Syntax
'Declaration
 
Protected Friend Overridable Function CreateMonthExpression(Of TDataObjectType)( _
   ByVal fieldName As String, _
   ByVal month As Integer _
) As Expression(Of Func(Of TDataObject,Boolean))
protected internal virtual Expression<Func<TDataObject,bool>> CreateMonthExpression<TDataObjectType>( 
   string fieldName,
   int month
)

Parameters

fieldName
The property that will be evaluated on.
month
The int month value which will be filterd for.

Type Parameters

TDataObjectType
The object type that the System.Linq.Expressions.Expression will be applied over.

Return Value

An System.Linq.Expressions.Expression which will evaluate for the condition.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also